using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.Master
{
    /// <summary>
    /// 全局佣金 
    /// </summary>
    [SugarTable("commission")]
    public class Commission
    {

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public int Id { get; set; }

        /// <summary>
        /// 分销商
        /// </summary>
        [SugarColumn(ColumnName = "distributor")]
        public string Distributor { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        [SugarColumn(ColumnName = "supplier")]
        public string Supplier { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        [SugarColumn(ColumnName = "start_date")]
        [Newtonsoft.Json.JsonConverter(typeof(ShortDateConvert))]
        public DateTime StartDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        [SugarColumn(ColumnName = "end_date")]
        [Newtonsoft.Json.JsonConverter(typeof(ShortDateConvert))]
        public DateTime EndDate { get; set; }

        /// <summary>
        /// 佣金率
        /// </summary>
        [SugarColumn(ColumnName = "plus_rate")]
        public decimal PlusRate { get; set; }

        /// <summary>
        /// 更新人id
        /// </summary>
        [SugarColumn(ColumnName = "updated_by")]
        public int UpdatedBy { get; set; }

        /// <summary>
        /// 更新人姓名
        /// </summary>
        [SugarColumn(ColumnName = "updated_by_name")]
        public string UpdatedByName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updated_time")]
        public DateTime UpdatedTime { get; set; }

    }
}
